package com.bingxue.edu.framework.security.justauth;

import com.bingxue.edu.framework.config.DynamicConfig;
import lombok.Data;
import me.zhyd.oauth.config.AuthConfig;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.HashMap;
import java.util.Map;

/**
 * @author panbo
 * @since 2024/7/27
 */
@Data
@DynamicConfig
@Configuration(proxyBeanMethods = false)
@ConfigurationProperties(prefix = "justauth")
public class JustAuthProperties {
    /**
     * 是否启用 JustAuth
     */
    private boolean enabled;

    /**
     * JustAuth 默认配置
     */
    private Map<String, AuthConfig> type = new HashMap<>();

}
